package com.xiao.hao.convertor;


import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
import com.xiao.hao.config.LocalDateTimeConfig;
import com.xiao.hao.req.XhAllConfigInsertReq;
import com.xiao.hao.req.XhAllConfigQueryPageReq;
import com.xiao.hao.req.XhAllConfigUpdateReq;
import com.xiao.hao.resp.XhAllConfigResp;
import com.xiao.hao.entity.XhAllConfig;

/**
*
*
* @Description 全局配置 类型转换
* @Author xiaohao
* @Date 2025-03-04 14:08:20
*/
@Mapper(uses = {LocalDateTimeConfig.class}, componentModel = "spring")
public interface XhAllConfigConvertor {

    XhAllConfigConvertor INSTANCE = Mappers.getMapper(XhAllConfigConvertor.class);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhAllConfig
    * @author xiaohao
    * @date 2025-03-04 14:08:20
    */
    XhAllConfig reqToEntity(XhAllConfigInsertReq req);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhAllConfig
    * @author xiaohao
    * @date 2025-03-04 14:08:20
    */
    XhAllConfig reqToEntity(XhAllConfigUpdateReq req);


    /**
    * 功能描述:
    *
    * @param entity
    * @return com.xiao.hao.resp.XhAllConfigResp
    * @author xiaohao
    * @date 2025-03-04 14:08:20
    */
    XhAllConfigResp entityToResp(XhAllConfig entity);

    /**
    * 功能描述:
    *
    * @param list
    * @return java.util.List<com.xiao.hao.resp.XhAllConfigResp>
    * @author xiaohao
    * @date 2025-03-04 14:08:20
    */
    List<XhAllConfigResp> entityListToRespList(List<XhAllConfig> list);
}



